package com.easyoffer.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.easyoffer.common.BaseResponse;
import com.easyoffer.common.DeleteRequest;
import com.easyoffer.common.PageRequest;
import com.easyoffer.model.dto.questionbank.QuestionBankUpdateRequest;
import com.easyoffer.model.dto.questionbank.QuestionBankAddRequest;
import com.easyoffer.model.entity.QuestionBank;
import com.baomidou.mybatisplus.extension.service.IService;
import com.easyoffer.model.vo.QuestionBankVO;

import javax.servlet.http.HttpServletRequest;

/**
* @author 何文斌
* @description 针对表【question_bank(题库)】的数据库操作Service
* @createDate 2025-03-15 21:09:28
*/
public interface QuestionBankService extends IService<QuestionBank> {

    BaseResponse<QuestionBankVO> addQuestionBank(QuestionBankAddRequest addRequest, HttpServletRequest request);

    BaseResponse<Boolean> updateQuestionBank(QuestionBankUpdateRequest updateRequest, HttpServletRequest request);

    BaseResponse<Boolean> deleteQuestionBank(DeleteRequest deleteRequest);

    Page<QuestionBank> getQuestionBankPage(PageRequest pageRequest, HttpServletRequest request);

    Page<QuestionBankVO> listQuestionBankPageVO(PageRequest pageRequest, HttpServletRequest request);
}
